package com.woodws.fresh.im.controller

import com.woodws.fresh.common.core.domain.R
import com.woodws.fresh.im.api.dto.ImInfo
import com.woodws.fresh.im.api.service.ImInfoService
import io.swagger.annotations.Api
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

/**
 * 基本信息控制层
 * @author maoxiaodong
 */
@Api(value = "imInfo", tags = ["基本信息"])
@RestController
@RequestMapping("/imInfo")
class ImInfoController(private val imInfoService: ImInfoService) {

    @GetMapping("findByLoginUser")
    fun findByLoginUser(): R<ImInfo> {
        return imInfoService.findByLoginUser()
    }
}